package com.zhq.blog.core.domain;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.NoRepositoryBean;

@SuppressWarnings("rawtypes")
@NoRepositoryBean
public interface BaseRepository<T extends BasePersistentDomain> extends JpaRepository<T, Long>,JpaSpecificationExecutor<T> {

	List<T> find(String fieldName,Object field);

	boolean has(String fieldName, Object field);
	
	long count(String fieldName, Object field);
	
	void delete(Long id);
}